package com.huisheng.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * @Authther: mrwu
 * @date:2021/3/5-03
 * @Description:com.huisheng.pojo
 */
public class User implements Serializable {
    private Integer id;
    private String name;
    private double total;

    public User() {
    }

    public User(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", total=" + total +
                ", oders=" + oders +
                ", roles=" + roles +
                '}';
    }

    public User(Integer id, String name, double total) {
        this.id = id;
        this.name = name;
        this.total = total;
    }

    //用户拥有的订单
    private List<Order> oders;
    //用户拥有的角色
    private List<Role> roles;

    public Integer getId() {
        return id;
    }

    public List<Order> getOders() {
        return oders;
    }

    public void setOders(List<Order> oders) {
        this.oders = oders;
    }


    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }
}
